#include <iostream>
#include <fstream>
#include <string>
#include "Matrix.h"
#include "Pixel.h"
#include "PPM.h"
using namespace std;


int main(void) {
	// test matrix operation
	Matrix<float> m(10, 10);
	for(int i = 0; i < m.getRowSize(); ++i) {
		for(int j = 0; j < m.getColSize(); ++j) {
			m(i, j) = 1;
		}
	}

	cout << m.getRowSize() << " " << m.getColSize() << endl;
	cout << "------------------------------"<<endl;
	cout << m;
	cout << "------------m * 2-------------"<<endl;
	cout << m * 2 ;
	cout << "------------m + m-------------"<<endl;
	cout << m + m;
	cout << "------------m * m-------------"<<endl;
	cout << m * m;
	cout << "------------m / 2----------------"<<endl;
	cout << m / 2;

	//cout <<"Change the value of (2,3) to be 2"<<endl;


	// test image operation
	PPM image;
	image.load("Snail_original.ppm");

	image.invert();
	image.save("inverted.ppm");

	image.enlarge(2);
	image.save("enlarged.ppm");
	return 0;

}


